package com.gzz.orchid.context.infrastructure.persistence.mapper.sys;


import com.gzz.orchid.common.boot.mybatis.BaseMapper;
import com.gzz.orchid.context.infrastructure.persistence.entity.sys.SysRolePo;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * 角色Mapper
 *
 * @author higmd
 */
public interface SysRoleMapper extends BaseMapper<SysRolePo> {
    @MapKey("code")
    List<Map<String, String[]>> getPermissions(Long roleId);
}
